package com.itWaVel.feign.client.fallback;

import com.Emplyment.result.Result;
import com.Emplyment.vo.PayResultVo;
import com.Emplyment.vo.ResumeTemplateVo;
import com.itWaVel.feign.client.TemplateClient;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
@Slf4j
public class TemplateClientFallback implements TemplateClient {

    @Override
    public Result<List<ResumeTemplateVo>> getResumeTemplate() {
        return Result.error("获取简历模板接口调用失败，请稍后再试！");
    }

    @Override
    public Result paySuccess(PayResultVo payResultVo) {
        return Result.error("支付成功接口调用失败，请稍后再试！");
    }
}
